Skip to content

Conversation

@umpire274
Copy link
Owner

✨ Summary

This PR refines the overall CLI help experience by reorganizing the command index and adding full localization support for help section titles (help_heading).
The goal is to make the help output more structured, readable, and consistent across all commands and languages.


đź”§ Changed

  • Reorganized command index in the main CLI help to follow a more intuitive structure:
    • 📚 Book commands: list, search, add, edit, del
    • ⚙️ App commands: config, backup, export, import
    • âť“ Other: help
  • Localized all help headings (help_heading) for a fully translated CLI help:
    • “Global options”
    • “List-specific options”
    • “Import-specific options”
    • “Export-specific options”
    • and other command-related sections
  • Improved consistency and readability of the help output across English and Italian.

đź§© Internal

  • Updated display_order values in cli.rs to align with the new logical command hierarchy.
  • Simplified cli.rs structure for easier future maintenance of localized headings.
  • Verified full compatibility with Clap’s help_template customization and i18n integration.

âś… Testing

  • Verified localized help output with cargo run -- --help for both English and Italian.
  • Confirmed proper command order and translated headings in the rendered help.
  • Ensured no regression in subcommand-specific help (librius list --help, librius import --help).

📦 Version

Release: v0.4.6
Date: 2025-11-12

…0.4.6)

### Changed
- Reordered command index for a clearer logical grouping in the main help output.
- Localized section titles (`help_heading`) such as “Global options”, “List-specific options”, etc.
- Improved overall help readability and consistency across commands.
- Updated display order values to match the new grouping structure.
@umpire274 umpire274 self-assigned this Nov 11, 2025
@umpire274 umpire274 added the enhancement New feature or request label Nov 11, 2025
@umpire274 umpire274 merged commit 36c9018 into main Nov 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants